package com.huadi.service.impl;

import com.huadi.dao.ExamDao;
import com.huadi.domain.Exam;
import com.huadi.service.ExamService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service

public class ExamServiceImpl implements ExamService {
    @Resource
    private ExamDao examDao;
    @Override
    public int addExam(Exam exam) {
        int nums = examDao.insertExam(exam);
        return nums;
    }

    @Override
    public List<Exam> findExams() {
        return examDao.selectExams();
    }
}
